# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# pyojo.examples                                  Copyright (c) 2013 nabla.net
# ----------------------------------------------------------------------------

import pyojo
from pyojo import js
from pyojo.js import dojo
from pyojo.js import dijit
from pyojo.js.dijit.icons import ICON, ICON_EDIT




def GET(request):
    x=[dijit.DropDownMenuItem("Menu_icon", "Icons").add("Menu_tools")]
    icons = ICON.keys()
    icons.sort()
    for icon in icons:
        x.append(dijit.MenuItem(label=icon, 
                                id="Menu_icon_"+icon, 
                                iconClass=ICON[icon]).add("Menu_icon"))
    return js.Require(x)

